package com.iias.communication.packet;

import com.alibaba.fastjson.JSON;

public interface PacketStringBody extends PacketBody{

    /**
     * 解码
     * @return
     */
    default void decode(byte[] in) {
        return ;
    }

    /**
     * 编码
     * @return
     */
    default byte[] encoding(){
      return JSON.toJSONString(this).getBytes();
    }


}
